﻿using Kingdee.BOS;
using Kingdee.BOS.App.Data;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace WSDZ.KM.ZH.PurchaseOrderCollectEntry2
{
    public class LogHelperV1
    {
        public static void WSLog(Context ctx,string BillNo, string Msg, string Msg1, bool status,string btype)
        {
            try
            {
                string sql = $@"insert into WSLog(BillNo,Msg,Msg1,[status],btype)
values(@BillNo,@Msg,@Msg1,'{status}',@btype)";
                DBUtils.Execute(ctx,sql,new List<SqlParam>() { 
                  new SqlParam("@BillNo",KDDbType.String,BillNo.ToStringV1()),
                  new SqlParam("@Msg",KDDbType.String,Msg.ToStringV1()),
                  new SqlParam("@Msg1",KDDbType.String,Msg1.ToStringV1()),
                  new SqlParam("@btype",KDDbType.String,btype.ToStringV1()),
                });
            }
            catch (Exception){ }
        }

    }
}
